package com.eonmind.common.provider.entity.ai;

import com.eonmind.common.contract.enums.DelEnum;
import com.eonmind.common.contract.enums.StatusEnum;
import com.eonmind.common.contract.timer.Timer;
import com.mongoplus.annotation.ID;
import com.mongoplus.annotation.collection.CollectionName;
import com.mongoplus.annotation.index.MongoIndex;
import com.mongoplus.annotation.index.MongoTextIndex;
import com.mongoplus.enums.IdTypeEnum;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.FieldNameConstants;

import java.util.ArrayList;
import java.util.List;

@Data
@CollectionName("aiModelCategory")
@MongoTextIndex(fields = {"modelCategoryName", "modelCategoryDesc"})
@FieldNameConstants
@ToString
public class AiModelCategory {
    @ID(type = IdTypeEnum.AUTO)
    private Long id;

    /**
     * 分类图标
     */
    private String modelCategoryIcon = "";
    /**
     * 分类名称
     */
    private String modelCategoryName = "";

    /**
     * 分类描述
     */
    private String modelCategoryDesc = "";

    /**
     * 分类下的模型集合
     */
    @MongoIndex
    private List<Long> modelIdList = new ArrayList<>();

    /**
     * 状态
     */
    private Integer modelCategoryStatus = StatusEnum.OPENED.getCode();

    /**
     * 排序
     */
    private Integer modelCategorySort = 0;

    /**
     * 创建时间
     */
    private Long createTime = Timer.currentTimestamp();

    /**
     * 更新时间
     */
    private Long updateTime = Timer.currentTimestamp();

    /**
     * 删除状态
     */
    @MongoIndex
    private Integer del = DelEnum.UN_DEL.getCode();


}
